﻿<%@ WebHandler Language="C#" Class="SIPO.Web.AjaxHandler.Loaddata.LoadPostGroup" %>

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;
using SIPO.Library.DataAccess.Transaction;
using SIPO.Library.DomainObject.Transaction;
using SIPO.Library.Enum;
using SIPO.Web.Support;
using Newtonsoft.Json.Linq;

namespace SIPO.Web.AjaxHandler.Loaddata
{
    public class LoadPostGroup : SIPO.Web.BaseHandler
    {
        recJurnalRepo jurnalDal = new recJurnalRepo(ConfigurationManager.ConnectionStrings["SIPOConn"].ConnectionString);








        string param = string.Empty;

        public override void ProcessRequest(HttpContext context)
        {
          param =  context.Request.Params["param"].ToString().Replace("_"," ");

          param += " and istosaiko=0";
            List<recJurnalSummary> jurSum = jurnalDal.GetList(param);
            var resilt = jurSum;
            context.Response.Write(Newtonsoft.Json.JsonConvert.SerializeObject(resilt));
        }

        public override bool IsReusable
        {
            get
            {
                return false;
            }
        }

    }
}